﻿using SqlSugar;

namespace Forum.Model.Entity.System
{
    [SugarTable("SYS_USER")]
    public class SYS_USER
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string UserId { get; set; }
        public string UserName { get; set; }
        public string UserCode { get; set; }
        public string NickName { get; set; }
        public string Tel { get; set; }
        public string Phone { get; set; }
        public string Address { get; set; }
        public string Email { get; set; }
        public bool IsAdmin { get; set; }
        public DateTime Createdon { get; set; }
        public string Avatar { get; set; }
        /// <summary>
        /// 1、男；2：女
        /// </summary>
        public int Gender { get; set; }
        public int Age { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string IdCard { get; set; }
        /// <summary>
        /// Y、可用；N、停用
        /// </summary>
        public string ISACTIVE { get; set; }
    }

    [SugarTable("SYS_USER")]
    public class User : SYS_USER
    {
        public string Password { get; set; }
    }
}
